package com.xjrccb.bizplat.mpbank.web;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSONObject;
import com.xjrccb.bizplat.mpbank.impl.constants.EOSConstants;
import com.xjrccb.bizplat.mpbank.impl.desensitize.Verification;
import com.xjrccb.bizplat.mpbank.impl.utils.EOSUtils;
import io.swagger.annotations.Api;

@RestController
@Api("${businessNameNotes}")
@RequestMapping("${businessName}")
public class Fs${businessName?cap_first}Controller {

<#if columns??>
<#list columns as column>
	/**
	* ${column.modelNameNotes}
	*/
	@PostMapping("${column.modelName?uncap_first}")
	@ApiOperation(value = "${column.modelNameNotes}",response = Fs${column.modelName?cap_first}Output.class)
//	@Decrypt(className = "com.xjrccb.bizplat.mbank.api.dto.xxx.xx")
	@MappingCentre(className = "com.xjrccb.bizplat.mbank.api.dto.xxx.xx")
	public Result ${column.modelName?uncap_first}(@RequestBody Fs${column.modelName?cap_first}Input param ) {
		Object[] res = null;
		try {
			res = EOSUtils.invoke(EOSConstants.${businessName}, EOSConstants.${column.eosmethod}, param);
		} catch (Throwable e) {
			logger.info(${column.modelNameNotes},e.getMessage(), e);
		}
		return resHeadUtils.editResult(res, Fs${column.modelName?cap_first}Output.class);
	}
</#list>
</#if>



<#if columns??>
	<#list columns as column>
		//${column.modelNameNotes}
		public static final String ${column.eosmethod} = "${column.modelName?uncap_first}";
	</#list>
</#if>
	

}